const { fetchBiliSubtitle, fetchBilibiliCourse } = require("./bilibili");
const Base64 = require("./base64");

/**
 * 批量获取 bvid
 * @param {*} arr
 */
async function serialLoopRequests(arr) {
  for (const item of arr) {
    await fetchBiliSubtitle(item);
  }
}

/**
 * 批量获取课程
 * @param {*} arr
 */
async function courseLoopRequests(arr) {
  for (const item of arr) {
    await fetchBilibiliCourse(item);
  }
}

serialLoopRequests(["BV1snNZeVEe3"]);

// courseLoopRequests([510]);
